package pl.gettoknowme.mobile.android.model.dbtypes;

/**
 * Klasa odpowiadająca tabeli 'user_settings'
 * @author Michał Kołodziejski
 */
public class UserSettings {

    protected String userId;
    
    public UserSettings() {
    }

    public UserSettings(String userId) {
        this.userId = userId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Override
    public int hashCode() {
        return userId.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || !(obj instanceof UserSettings)) {
            return false;
        }
        UserSettings other = (UserSettings) obj;
        if (userId == null) {
            if (other.userId != null) {
                return false;
            }
        } else if (!userId.equals(other.userId)) {
            return false;
        }
        return true;
    }
    
    @Override
    public String toString() {
        return "UserSettings[userId="+userId+"]";
    }
}
